package com.zxp.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zxp.server.config.Result;
import com.zxp.server.dto.UserLogin;
import com.zxp.server.vo.User;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 朱小皮
 * @since 2022-05-04
 */
public interface IUserService extends IService<User> {

    Boolean userExists(String username);

    int addUser(User user);

    User findUserById(String userId);

    void updateUser(User user);

    Result login(UserLogin userLogin, HttpServletRequest Request);
}
